
class FunctionTest  {
  String name;
  DateTime launchDate;

  int get launchYear =>launchDate.year;
  FunctionTest(this.name,this.launchDate);
  FunctionTest.unLaunched(String name):this(name,DateTime.now());
  void describe(){
    var years = DateTime.now().difference(launchDate).inDays ~/ 365;
    print('launched:$launchYear($years years ago)');
  }
}